﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyOA.DAL;
using MyOA.Model;

namespace MyOA.BLL
{
  public  class AllScheduleManage
    {
      AllScheduleService service = new AllScheduleService();


      /// <summary>
      /// 根据用户ID 获取这用户所有的个人日程
      /// </summary>
      /// <param name="userId">用户ID</param>
      /// <param name="size">一页显示多少条数据</param>
      /// <param name="currentPage">当前是第几页</param>
      /// <param name="isCount">是否要进行计算总行数的操作0是进行，因为这个操作只进行一次</param>
      /// <param name="sum">out所有日程的总数</param>
      /// <returns>获取这用户所有的个人日程</returns>
      public IList<Schedule> getAllScheduleByUserId(int userId, int size, int currentPage,int isCount, out int sum)
      {
          return service.getAllScheduleByUserId(userId,size,currentPage,isCount,out sum);
      }

       /// <summary>
       /// 根据用户登陆名获取用户ID
       /// </summary>
       /// <param name="loginId">用户登陆名</param>
       /// <returns>用户ID</returns>
      public int getUserIdByLoginId(string loginId)
      {
          return service.getUserIdByLoginId(loginId);
      }
    }
}
